package cn.dakaqi.entities;


import cn.dakaqi.utils.Clock;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author beliveli on 2016/5/29/0029
 */
@EqualsAndHashCode(callSuper = false)

@Entity
@Table(name = "U_LOG")
@Data
@ToString
public class SystemLog extends IdEntity
{

    private static final long serialVersionUID = 4242122947602887613L;
    private int type;
    private String message;
    private Date createTime;

    public SystemLog(int type, String message)
    {
        this.type = type;
        this.message = message;
        this.createTime = Clock.DEFAULT.getCurrentDate();
    }
}
